package com.mdd.front.controller.course;

import com.mdd.common.core.AjaxResult;
import com.mdd.front.service.course.ICourseCategoryService;
import com.mdd.front.vo.course.CourseCategoryListVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 课程分类管理
 * @author panweiliang
 */
@RestController
@RequestMapping("/api/course/category")
public class CourseCategoryController {

    @Resource
    ICourseCategoryService iCourseCategoryService;

    /**
     * 课程分类列表
     *
     * @author panweiliang
     * @return Object
     */
    @GetMapping("/list")
    public Object list() {
        List<CourseCategoryListVo> list = iCourseCategoryService.list();
        return AjaxResult.success(list);
    }

}
